const wxml =(company,goodsImg,title,price,onceprice,code)=>  { return`
<view class="share">
     <view class="bgImg"></view>
     <text class="miniName">`+company+`</text>
     <image class="proImg"  src="`+goodsImg+`"></image>
     <text class="proTitle">`+title+`</text>
     <text class="eprice">￥`+price+`</text>
     <text class="onceprice">￥`+onceprice+`</text>
     <view class="line"></view>
     <image class="partition" src="https://image.hnjg.jigon.cn/data/upload/images/2020-04-07/f6c204476b2da68d42df4824e3b35785.png"></image>
     <image class="code" src="`+code+`"></image>
     <text class="tips">长按识别小程序二维码</text>
     <text class="desc">好货值得分享</text>
</view>
`}
//<image class="bgImg" src="https://image.hnjg.jigon.cn/data/upload/images/2020-03-28/cba94fe4387808cff561648cd0314ff7.png"></image>
//mode="aspectFill" <text class="efuhao"></text> 
//http://img.jioao.cn/images/uploadImgForm/201807070926482211.jpg
//https://image.hnjg.jigon.cn/wx_app_qrcode/e1cf11363b92d29b5f9b69d6443a34e6.jpg
const style = {
  share: {
    position: 'relative',
    width: 280,
    height: 445,
    flexDirection: 'row',
    justifyContent: 'space-around',
    backgroundColor: '#ccc',
    alignItems: 'center',
    backgroundColor: "#ffffff",
    borderRadius: 12
  },
  bgImg:{
    position: 'absolute',
    top: 0,
    left: 0,
    width: 280,
    height: 445,
    borderRadius: 12,
    backgroundColor:"#ffffff"
  },
  miniName: {
    width: 280,
    height: 60,
    lineHeight: '1.4em',
    position: 'absolute',
    top: 10,
    left: 0,
    textAlign: 'center',
    color: '#FF5050',
    fontSize: 18,
    fontWeight: 'bold'
  },
  proImg: {
    position: 'absolute',
    top: 40,
    left: 55,
    width: 170,
    height: 170,
    backgroundColor: "#cccccc",
  },
  proTitle: {
    position: 'absolute',
    top: 220,
    left: 35,
    width: 210,
    textAlign: 'center',
    height: 45,
    color: '#000000',
    fontSize: 15,
    fontWeight: 'bold',
    lineHeight: '1.4em'
  },
  partition:{
    position: 'absolute',
    top: 320,
    left: 25,
    width: 230,
    height: 2,
    backgroundColor: "#cccccc",
  },
  line: {
    width: 70,
    height: 2,
    position: 'absolute',
    top: 290,
    left: 150,
    backgroundColor: "#999999"
  },

  eprice: {
    width: 140,
    height: 50,
    position: 'absolute',
    top: 270,
    left: 0,
    color: '#FF5050',
    fontSize: 28,
    fontWeight: 'bold',
    lineHeight: '1.4em',
    textAlign:'right'
  },
  onceprice: {
    width: 140,
    height: 30,
    position: 'absolute',
    top: 280,
    left: 150,
    color: '#999999',
    fontSize: 18,
    fontWeight: 'bold',
    lineHeight: '1.4em',
    textAlign:'left'
  },
  efuhao: {
    width: 200,
    height: 30,
    position: 'absolute',
    top: 280,
    left: 60,
    color: '#FF5050',
    fontSize: 16,
    fontWeight: 'bold',
    lineHeight: '1.4em'
  },
 

  code: {
    width: 72,
    height: 72,
    position: 'absolute',
    top: 350,
    left: 30,
    backgroundColor: '#cccccc',
  },
  tips: {
    width: 200,
    height: 50,
    position: 'absolute',
    top: 370,
    left: 115,
    fontSize: 14,
    fontWeight: 'bold',
  },
  desc:{
    width: 200,
    height: 50,
    position: 'absolute',
    top: 390,
    left: 115,
    fontSize: 12,
    color:'#666666'
  }
}

module.exports = {
  wxml,
  style
}
